#include<iostream>
using namespace std;
int main()
{
	int ans = 0;
	//cout << 26 * 26 * 26 << endl;
	for (int i = 1;; i++) {
		if (pow(26, i) > 2022) {
			ans = i;
			break;
		}
	}
	int sum = pow(26, ans);
	int k = 2022;
	while (ans--) {
		cout << k % 26 << endl;
		k /= 26;
	}
	/*for (int i = 1; i <= 26; i++) {
		for (int j = 1; j <= 26; j++) {
			for (int k = 1; k <= 26; k++) {
				sum++;
				if (sum == 2022) {
					cout << i << " " << j << " " << k << endl;
					return 0;
				}
			}
		}
	 }*/
	//cout << ans << endl;
	return 0;
}	